package com.guyj.baseapp;

import android.support.v7.widget.RecyclerView;

import com.guyj.baseapp.entity.DemoBean;

import cn.bingoogolapple.androidcommon.adapter.BGARecyclerViewAdapter;
import cn.bingoogolapple.androidcommon.adapter.BGAViewHolderHelper;

/**
 * Created by Bada on 2016/9/18.
 */
public class MainAdapter extends BGARecyclerViewAdapter<DemoBean>{

    public MainAdapter(RecyclerView recyclerView, int itemLayoutId) {
        super(recyclerView, itemLayoutId);
    }

    @Override
    protected void fillData(BGAViewHolderHelper holder, int i, DemoBean bean) {
        holder.setText(R.id.tv_demo_name,bean.getName());
        holder.setItemChildClickListener(R.id.tv_demo_name);
    }
}
